import Vue from 'vue'
import Router from 'vue-router'
import Welfare from './user_router/welfare.js'
import UserBasic from './user_router/user_basic.js'
import Mall from './mall_router/index.js'
Vue.use(Router)

var router = new Router({
  mode: 'history',
  routes: [
    ...Welfare,
    ...UserBasic,
    ...Mall
  ]
})
router.beforeEach((to, from, next) => {
  next()
})
export default router
